﻿//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1998-2024 Glodon Company Limited.
//
// Licensed under the MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the “Software”),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//////////////////////////////////////////////////////////////////////////////
#pragma once

namespace gcmp
{
    /// \brief 功能类型
    enum class FunctionType : int32_t
    {
          FT_Unknown       = 0,
          System           = 1,
          InPlaceEdit      = 2, ///< 在位编辑。
          EditFamily       = 3, ///< 編輯族。
          ControlFamilyApp = 4, ///< 控制族编辑器。
    };

    /// \brief 操作类型
    enum class OperationType : int32_t
    {
        OT_Unknown                             = 0 ,
        RequestServerInfo                      = 1 ,
        PostServerInfo                         = 2 ,
        StartEdit                              = 3 , ///< 开始编辑。
        EndEdit                                = 4 , ///< 结束编辑。
        PostViewData                           = 5 , ///< 发送视图数据。
        RequestViewData                        = 6 , ///< 请求视图数据。
        Ready                                  = 7 , ///< 就绪消息，进程间同步用。
        FinishEditReturnToProject              = 8 , ///< 完成编辑并退回至项目环境。
        CancelEditReturnToProject              = 9 , ///< 取消编辑并退回至项目环境。
        ActivateFamilyWindow                   = 10, ///< 激活族App窗口。
        RequestDocumentData                    = 11, ///< 请求文档数据。
        PostDocumentData                       = 12, ///< 发送文档数据。
        PostUserData                           = 13, ///< 发送用户自定义数据。
        NewFile                                = 14, ///< 新建族文件。
        PostJournalMessage                     = 15, ///< 发送日志通信数据。
        HideFamilyWindow                       = 16, ///< 隐藏族App窗口。
        CloseFamilyWindow                      = 17, ///< 关闭族App窗口。
        CloseFamilyAppWhenInBackGround         = 18, ///< 关闭后台运行的族App。
        LoadFamilyAppBackGroundRunStrategy     = 19, ///< 加载族App后台运行策略。
        UnLoadFamilyAppBackGroundRunStrategy   = 20, ///< 卸载族App后台运行策略。
        StartEditByCopy                        = 21, ///< 开始通过副本形式编辑。
        NewDoorOrWindowFile                    = 22, ///< 新建门窗构件文件。
        OpenFileByStandalone                   = 23, ///< 构件gac被双击打开（独立版）。
    };
}
